package com.suning.app.snpaasadmin.pojo;

import java.io.Serializable;

public class ServiceBrokerMysql implements Serializable {
    private Integer id;

    private String serviceBrokeGuid;

    private Integer mysqlId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getServiceBrokeGuid() {
        return serviceBrokeGuid;
    }

    public void setServiceBrokeGuid(String serviceBrokeGuid) {
        this.serviceBrokeGuid = serviceBrokeGuid == null ? null : serviceBrokeGuid.trim();
    }

    public Integer getMysqlId() {
        return mysqlId;
    }

    public void setMysqlId(Integer mysqlId) {
        this.mysqlId = mysqlId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ServiceBrokerMysql other = (ServiceBrokerMysql) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getServiceBrokeGuid() == null ? other.getServiceBrokeGuid() == null : this.getServiceBrokeGuid().equals(other.getServiceBrokeGuid()))
            && (this.getMysqlId() == null ? other.getMysqlId() == null : this.getMysqlId().equals(other.getMysqlId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getServiceBrokeGuid() == null) ? 0 : getServiceBrokeGuid().hashCode());
        result = prime * result + ((getMysqlId() == null) ? 0 : getMysqlId().hashCode());
        return result;
    }
}